<?php

namespace app\admin\controller;

use think\Controller;
use think\Request;
use app\admin\model\Admin;

class Login extends Controller
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */





    public function login()
    {
        //


        if(request()->isPost())
        {
             return $rs=(new Admin())->login(input('post.'));
        }
        return $this->fetch();

    }

    public function getOut(){

        session(null);
        return redirect('login/login');

    }
}
